package com.ruoyi.mespro.service.impl;

import java.util.List;

import com.ruoyi.mespro.domain.SizePdfReport;
import com.ruoyi.mespro.domain.SizeShafttypeReport;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mespro.mapper.ShaftSizeMapper;
import com.ruoyi.mespro.domain.ShaftSize;
import com.ruoyi.mespro.service.IShaftSizeService;

/**
 * 浆纱数据汇总Service业务层处理
 *
 * @author Jun Xiang
 * @date 2022-06-07
 */
@Service
public class ShaftSizeServiceImpl implements IShaftSizeService
{
    @Autowired
    private ShaftSizeMapper shaftSizeMapper;

    /**
     * 查询浆纱数据汇总
     *
     * @param id 浆纱数据汇总主键
     * @return 浆纱数据汇总
     */
    @Override
    public ShaftSize selectShaftSizeById(Long id)
    {
        return shaftSizeMapper.selectShaftSizeById(id);
    }

    /**
     * 查询浆纱数据汇总列表
     *
     * @param shaftSize 浆纱数据汇总
     * @return 浆纱数据汇总
     */
    @Override
    public List<ShaftSize> selectShaftSizeList(ShaftSize shaftSize)
    {
        return shaftSizeMapper.selectShaftSizeList(shaftSize);
    }

    @Override
    public List<ShaftSize> selectWeavingShaftSize(ShaftSize shaftSize)
    {
        return shaftSizeMapper.selectWeavingShaftSize(shaftSize);
    }

    /**
     * 新增浆纱数据汇总
     *
     * @param shaftSize 浆纱数据汇总
     * @return 结果
     */
    @Override
    public int insertShaftSize(ShaftSize shaftSize)
    {
        return shaftSizeMapper.insertShaftSize(shaftSize);
    }

    /**
     * 修改浆纱数据汇总
     *
     * @param shaftSize 浆纱数据汇总
     * @return 结果
     */
    @Override
    public int updateShaftSize(ShaftSize shaftSize)
    {
        return shaftSizeMapper.updateShaftSize(shaftSize);
    }

    /**
     * 批量删除浆纱数据汇总
     *
     * @param ids 需要删除的浆纱数据汇总主键
     * @return 结果
     */
    @Override
    public int deleteShaftSizeByIds(Long[] ids)
    {
        return shaftSizeMapper.deleteShaftSizeByIds(ids);
    }

    /**
     * 删除浆纱数据汇总信息
     *
     * @param id 浆纱数据汇总主键
     * @return 结果
     */
    @Override
    public int deleteShaftSizeById(Long id)
    {
        return shaftSizeMapper.deleteShaftSizeById(id);
    }

    @Override
    public ShaftSize selectTodayLastRecord() {
        return shaftSizeMapper.selectTodayLastRecord();
    }

    @Override
    public ShaftSize selectShaftSizeByCodeStatus(String shaftCode) {
        return shaftSizeMapper.selectShaftSizeByCodeStatus(shaftCode);
    }

    @Override
    public ShaftSize selectLastShaftSize(String maccode) {
        return shaftSizeMapper.selectLastShaftSize(maccode);
    }

    @Override
    public ShaftSize selectShaftSizeByShaftCode(String shaftCode) {
        return shaftSizeMapper.selectShaftSizeByShaftCode(shaftCode);
    }

    @Override
    public List<SizePdfReport> selectWarpPdfReport(ShaftSize shaftSize) {
        return shaftSizeMapper.selectSizePdfReport(shaftSize);
    }

    @Override
    public List<SizeShafttypeReport> selectSizeShiftReport(ShaftSize shaftSize) {
        return shaftSizeMapper.selectSizeShiftReport(shaftSize);
    }
}
